import React from 'react';
import Test from './test';
export default function index() {
  const model = [
    {
      code: 'A001',
      paramProperties: [
        {
          name: 'hook1',
          dataType: 'tag',
          tagList: [
            { code: 'link1', name: '链接1' },
            { code: 'link2', name: '链接2' },
          ],
        },
        {
          name: 'hook2',
          dataType: 'text',
        },
      ],
      name: '客户本期投效比较上期上涨明显钉钉群通知：{{hook1}}钉钉机器人投诉效益比异常低 {{hook2}}(投效比 万分钟/投诉），请及时跟进处理。',
      type: 'offlinePunish',
      class: 'com.alicom.security.operation.client.admin.dto.PunishActionDTO',
    },
    {
      code: 'A002',
      paramProperties: [
        {
          name: 'name',
          dataType: 'text',
        },
        {
          name: 'age',
          dataType: 'text',
        },
      ],
      name: '{{name}}你好，你今年多少 {{age}}岁了',
      type: 'offlinePunish',
      class: 'com.alicom.security.operation.client.admin.dto.PunishActionDTO',
    },
  ];

  const renderList = () => {
    return model.map((item) => {
      return <Test param={item} key={item.code} />;
    });
  };

  return <div>{renderList()}</div>;
}
